
export BUSYBOX_INSTALL_HNP_PATH=${HNP_PUBLIC_PATH}/busybox.org/busybox_1_37_0

make ohos_aarch64_defconfig VERBOSE=1

make install CONFIG_PREFIX=${BUSYBOX_INSTALL_HNP_PATH}

cp hnp.json ${BUSYBOX_INSTALL_HNP_PATH}/
pushd ${BUSYBOX_INSTALL_HNP_PATH}/../
    tar -zvcf ${ARCHIVE_PATH}/ohos_busybox_1_37_0.tar.gz busybox_1_37_0/
    mv busybox_1_37_0 busybox_1_37_0_kpg
    mkdir -p ${BUSYBOX_INSTALL_HNP_PATH}/bin
    cp busybox_1_37_0_kpg/bin/busybox ${BUSYBOX_INSTALL_HNP_PATH}/bin
    cp busybox_1_37_0_kpg/hnp.json ${BUSYBOX_INSTALL_HNP_PATH}/
    rm -rf busybox_1_37_0_kpg
    ${HNP_TOOL} pack -i ${BUSYBOX_INSTALL_HNP_PATH} -o ${ARCHIVE_PATH}/
popd